﻿<%@ Page Title="Login" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.vb" Inherits="WSAD_Assignment.Login" %>
<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

    <hgroup class="title">
        <h3 class="form-signup-heading"><%: Title %></h3>
    </hgroup>
    
    <section id="loginForm">
<%--        <h2>Use a local account to log in.</h2>--%>
        <asp:Login runat="server" ViewStateMode="Disabled" RenderOuterTable="false">
            <LayoutTemplate>
                <p class="validation-summary-errors">
                    <asp:Literal runat="server" ID="FailureText" />
                </p>
                <fieldset>
                    <legend>Login Form</legend>

                    <div class="form-group">
                         <asp:Label ID="lblUsername" AssociatedControlID="UserName" runat="server" CssClass="col-sm-2 control-label" Text="Username"></asp:Label>

   		                 <div class="col-sm-4">
                             <asp:TextBox ID="UserName" name="UserName" runat="server" CssClass="form-control" placeholder="Username"></asp:TextBox>
                             <asp:RequiredFieldValidator runat="server" ControlToValidate="UserName" CssClass="field-validation-error" ErrorMessage="This field is required!" />
   		                 </div>
                    </div>
                    
                    <div class="form-group">
                         <asp:Label ID="lblPassword" AssociatedControlID="Password" runat="server" CssClass="col-sm-2 control-label" Text="Password"></asp:Label>

   		                 <div class="col-sm-4">
                             <asp:TextBox ID="Password" name="Password" runat="server" TextMode="Password" CssClass="form-control" placeholder="Password"></asp:TextBox>
                             <asp:RequiredFieldValidator runat="server" ControlToValidate="Password" CssClass="field-validation-error" ErrorMessage="This field is required!" />
                         </div>
                     </div>
                       
                     <div class="form-group">
                         <asp:Label ID="lblRememberMe" AssociatedControlID="RememberMe" runat="server" CssClass="col-sm-2 control-label checkbox" Text="Remember me?"></asp:Label>

   		                 <div class="col-sm-4">
                             <asp:CheckBox ID="RememberMe" name="RememberMe" runat="server"/>
                         </div>
                     </div>

                     <div class="form-group form-login">                        
                        <asp:LinkButton ID="btnLogin" 
                            runat="server"
                            CommandName="Login"
                            CssClass="btn btn-primary"  
                            CausesValidation="true">
                            <i aria-hidden="true" class="glyphicon glyphicon-log-in"></i> Login
                        </asp:LinkButton>

                        <asp:LinkButton ID="btnRegister" 
                            runat="server"
                            CssClass="btn btn-success cancel"  
                            CausesValidation="false"      
                            PostBackUrl="~/Account/Register">
                            <i aria-hidden="true" class="glyphicon glyphicon-flash"></i> Register
                        </asp:LinkButton>
                     </div>
                </fieldset>
            </LayoutTemplate>
        </asp:Login>

        
      </section>

    <%--<section id="socialLoginForm">
        <h2>Use another service to log in.</h2>
        <uc:OpenAuthProviders runat="server" ID="OpenAuthLogin" />
    </section>--%>

</asp:Content>